tar xf ${DOWNLOADDIR}/grub-2.12.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/grub-2.12
	echo depends bli part_gpt > grub-core/extra_deps.lst
	mkdir build
	pushd build
		TARGET_CC="${CROSS_TARGET}-gcc" \
		../configure --build=${CROSS_HOST} --host=${CROSS_HOST} \
		             --target=${CROSS_TARGET} --prefix=${SYSDIR}/cross-tools \
		             --program-transform-name=s,grub,${CROSS_TARGET}-grub, \
		             --with-platform=efi --with-utils=host --disable-werror
		make ${JOBS}
		make install
	popd
popd
